import 'dart:convert';
import 'dart:io';

class HttpClientUtil{



  post(Uri uri,dynamic data) async {
    HttpClient client = HttpClient();
    HttpClientRequest request = await client.postUrl(uri);
    request.add(utf8.encode(json.encode(data)));
    HttpClientResponse response = await request.close();
    // response.
    String responseBody = await response.transform(utf8.decoder).join();

    client.close();
  }

}